cmake_minimum_required(VERSION 3.19.8)
PROJECT(idc_mqtt C)

include_directories(./ ./mqtt ./utils ./comm ./ubus)

add_subdirectory(./mqtt)
add_subdirectory(./utils)
add_subdirectory(./ubus)

aux_source_directory(. SRCS)
set(OBJ_LIST cjson uci mosquitto pthread ubus ubox idc_ubus mqtt utils)

add_executable(idc_mqtt ${SRCS})

target_link_libraries(idc_mqtt ${OBJ_LIST})
INSTALL(TARGETS idc_mqtt RUNTIME DESTINATION bin)











